package ute.mvc.service;

import ute.mvc.dto.NextData;
import ute.mvc.dto.QuestionDTO;
import ute.mvc.model.SubmittedTestAndQuizz;

public interface SubmittedTestAndQuizzService {
	public void addSubmittedTestAndQuizz(SubmittedTestAndQuizz submittedTestAndQuizz);
	public void updateSubmittedTestAndQuizz(SubmittedTestAndQuizz submittedTestAndQuizz);
	public void deleteSubmittedTestAndQuizz(SubmittedTestAndQuizz submittedTestAndQuizz);
	
	public SubmittedTestAndQuizz getSubmittedTestAndQuizz(String id);
	public QuestionDTO getNextQuestion(NextData data);
	
	public SubmittedTestAndQuizz pointTest(SubmittedTestAndQuizz submitted);
	
	/**
	 * 
	 * @param id
	 * @return position of last done question in Submitted Test if exist, return -1 if not
	 */
	public int getInCompleteSubmittedTestAndQuizz(String id);
	public int getNumberQuestion(String id);
}
